package com.karrysong.blog_springboot.service;

import com.karrysong.blog_springboot.vo.Result;

import javax.servlet.http.HttpSession;

/**
 * @ClassName: EmailService
 * @Author: KarrySong
 * @Date: 2022/8/25 9:49
 * @Description:
 */

public interface EmailService {

    /**
     * 发送邮箱验证码
     * @param emailAddress 邮箱地址
     * @return
     */
    Result sendEmailCheckCode(String emailAddress);

    /**
     * 验证邮箱验证码
     * @param emailAddress 邮箱
     * @param code 验证码
     * @return
     */
    Result checkEmailCheckCode(String emailAddress, String code);
}
